package org.nvframe.component.property.operation;

public class Addition implements Operation {
	
	private int addValInt;
	private float addValFloat;
	private double addValDouble;
	
	public Addition(int addVal) {
		this.addValInt = addVal;
	}	
	
	public Addition(float addVal) {
		this.addValFloat = addVal;
	}
	
	public Addition(double addVal) {
		this.addValDouble = addVal;
	}
	
	@Override
	public int getResult(int orgVal) {
		return orgVal + addValInt;
	}

	@Override
	public float getResult(float orgVal) {
		return orgVal + addValFloat;
	}

	@Override
	public double getResult(double orgVal) {
		return orgVal + addValDouble;
	}
}
